package cn.itcast.service.impl;

import cn.itcast.entity.Account;
import cn.itcast.entity.Dept;
import cn.itcast.mapper.AccountMapper;
import cn.itcast.mapper.DeptMapper;
import cn.itcast.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountMapper accountMapper;
    @Autowired
    DeptMapper deptMapper;

    public List<Account> findAll() {
        List<Account> list = accountMapper.findAll();
        return list;
    }
    @Override
    public List<Dept> findDept() {
        List<Dept> deptList = deptMapper.findDeptList();
        return deptList;
    }

}
